package dk.dashboardFP.elements.button {
	import dk.dashboardFP.interactionElementFramwork.InteractionElement;
	import dk.dashboardFP.interactionElementFramwork.InteractionElementView;
	import dk.dashboardFP.interactionElementFramwork.inputElement.ToggleButton;
	import dk.dashboardFP.interactionElementFramwork.inputElementViews.CheckBoxView;
	import dk.dashboardFP.panels.displayPanel.DFPToggleButtonView;

	/**
	 * @author josef
	 */
	public class ToggleButtonElement extends ButtonElement {
		public function ToggleButtonElement(oID:Object, sLabel : String, sPreLabel : String = "") {
			super(oID, sLabel, sPreLabel);
		}

		override protected function setupElements() : void {
			super.setupElements();
		}

		override protected function get_doButtonView(sLabel : String, nWidth : Number = NaN) : InteractionElementView {
			return new DFPToggleButtonView(sLabel, nWidth);
		}

		override protected function get_oInteractionElement(sLabel : String, oID:Object) : InteractionElement {
			oID;
			return new ToggleButton(get_doButtonView(sLabel) as CheckBoxView);
		}
	}
}
